﻿using System.Collections.Generic;

namespace DataAccessLayer
{
    public sealed class ProtagonistFactory : ProtagonistFactoryBase
    {
        public override NormalProtagonist ConstructProtagonist(int hp, int power, int speed, int weaponSlots, EditorRect sourceRect, EditorRect colRect)
        {
            return new NormalProtagonist
                       {
                           Hp = hp,
                           Power = power,
                           SourceRect = sourceRect,
                           CollisionRectangle = colRect
                       };
        }

        public override ProtagonistEx ConstructProtagonist(int hp, int power, int speed, int weaponSlots, EditorRect sourceRect, List<EditorRect> colRects)
        {
            return new ProtagonistEx
            {
                Hp = hp,
                Power = power,
                SourceRect = sourceRect,
                CollisionRectangles = colRects
            };
        }
    }
}